package cn.edu.scau.cmi.zhuangzhihong.composite.safe;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;



	public class client extends Application {
		 public static void  main(String args[]) {
			 
			 launch(args);
			 
		 }

		@Override
		public void start(Stage primaryStage) throws Exception {
			
//			Composite root = new Composite("E盘");
//			Composite music = new Composite("音乐");
//			Composite learn = new Composite("学习");
//			learn.add(new Leaf("Java核心技术.pdf"));
//			learn.add(new Leaf("java笔记.md"));
//			
//			root.add(music);
//			root.add(learn);
//			
//			System.out.println(root.printStruct(""));
					
			 try {
		         // Read file fxml and draw interface.
		     	
		         Parent root1 = FXMLLoader.load(getClass()
		                 .getResource("view.fxml"));

		         primaryStage.setTitle("安全性组合模式");
		         primaryStage.setScene(new Scene(root1));
		         primaryStage.show();
		        
		     } catch(Exception e) {
		         e.printStackTrace();
		     }
		 
		}
		
}
